package day02;

public class LongDemo {
    public static void main(String[] args) {
        long a = 25L;
        long c = 10000000000L;

        long e = 1000000000*2*10L;//10亿乘二没有超出int范围，乘long类型变为long，结果为200亿
        System.out.println(e);
        long f = 1000000000*3*10L;//10亿乘三超出int范围，变为负值，所以结果不是300亿
        System.out.println(f);
        long g = 1000000000L*3*10;//10亿为long类型，结果为300亿
        System.out.println(g);

    }

}
